package com.steel.yfmall.cloud.assistant.controller;

import com.steel.yfmall.cloud.assistant.api.stock.WlFreightServiceAPI;
import com.steel.yfmall.cloud.assistant.bean.param.APIParamFreightBean;
import com.steel.yfmall.cloud.assistant.bean.result.APIResultFreightBean;
import com.steel.yfmall.cloud.components.utils.base.APIMsgBean;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 请求 物流系统获取运费
 *
 * @program: WlFreightController
 * @author: liuzhijun
 * @date: 2021-04-03 17:18
 **/
@RestController
public class WlFreightController {


    /**
     * 电商系统 请求物流系统查询运费
     *
     * @param apiParamFreightBean
     * @return com.steel.yfmall.cloud.components.utils.base.APIMsgBean<com.steel.yfmall.cloud.assistant.bean.result.APIResultFreightBean>
     * @author liuzhijun
     * @date 2021/4/3 17:27
     */
    @RequestMapping("/getFreightMoney")
    public APIMsgBean<APIResultFreightBean> getFreightMoney(@RequestBody APIParamFreightBean apiParamFreightBean) {
        return wlFreightServiceAPI.getFreightMoney(apiParamFreightBean);
    }


    @Resource
    private WlFreightServiceAPI wlFreightServiceAPI;

}
